require.config({
    paths: {
        jquery: 'jquery-3.2.1',
        jqueryUI: 'jquery-ui.min'
    }
});


require(['jquery', 'window'], function ($, w) {

    $('#a').click(function () {
        let win = new w.Window();
        win.alert({
            title: '我是标题',
            content: 'hello',
            handler: function () {
                alert("you click the button");
            },
            hasCloseBtn: true,
            hasMask: true,
            skinClassName: 'window_skin_write',
            textForAlertBtn: '哈哈',
            dragHandle: '.window_header',
            width: 300,
            height: 150,
            y: 50
        }).on('alert', function () {
            alert('click');
        });

        win.on('close', () => {
            alert('close')
        });

    });
});